<f:layout name="Default" />

This Template is responsible for creating a table of domain objects.

If you modify this template, do not forget to change the overwrite settings
in /Configuration/ExtensionBuilder/settings.yaml:
  Resources:
    Private:
      Templates:
        List.html: keep

Otherwise your changes will be overwritten the next time you save the extension in the extension builder

<f:section name="main">
<f:flashMessages />

<script type="text/javascript">
	$( document ).ready(function() {
		
		$(".btn-success").click(function(e){
			e.preventDefault(); 
			if($('input[name=name]').val() == ""){
				alert("Bitte Name eingeben");
				return;
			} else if($('input[name=email]').val() == "") {
				alert("Bitte Email eingeben");
				return;
			} else if($('textarea').val() == "") {
				alert("Bitte Text eingeben");
				return;
			}
			$.post("http://{baseUrl}/", $("#formkontakt").serialize(),
			//$.post( "http://{baseUrl}/", { eID: "kontaktform" }, 
				function(data){
					//alert(data);					
				});		
// 				function(data){
// 					alert(data);
// 					//$(".success").attr("style","display:block");
// 					return;
// 				});
		});
	});
</script>

 <div class="col-lg-8 col-lg-offset-2" >
     <form role="form" id="formkontakt">
     	 <input type="hidden" name="eID" value="kontaktform" />	
     	 <input type="hidden" name="sendemail" value="{sendemail}" />
         <div class="row">
             <div class="form-group col-xs-12 floating-label-form-group">
                 <label for="name">Name</label>
                 <input class="form-control" type="text" name="name" placeholder="Name">
             </div>
         </div>
         <div class="row">
             <div class="form-group col-xs-12 floating-label-form-group">
                 <label for="email">Email Address</label>
                 <input class="form-control" type="email" name="email" placeholder="Email Address">
             </div>
         </div>
         <div class="row">
             <div class="form-group col-xs-12 floating-label-form-group">
                 <label for="message">Message</label>
                 <textarea placeholder="Message" class="form-control" rows="5" name="text"></textarea>
             </div>
         </div>
         <br>
         <div class="row">
             <div class="form-group col-xs-12">
                 <button type="submit" class="btn btn-lg btn-success"><f:translate key="send" extensionName="kontaktformular" /></button>
             </div>
         </div>
     </form>
 </div>


<!--  
<form id="form1">
	<fieldset>
    	<div class="success"><div class="success_txt">Kontaktformular wurde versendet!<br /><strong>Wir melden uns bei Ihnen.</strong></div></div>
        	<label class="name wrapper-after">      
	            <input type="text" value="Name*" name="name">
	            <span class="error error-empty"></span> <span class="empty error-empty">*This field is required.</span>            
            </label><div class="clear"></div>
            <label class="email wrapper-after">   
            	<input type="text" value="E-mail*" name="email">
                <span class="error error-empty">*E-Mail Adresse nicht g�ltig.</span> <span class="empty error-empty">*Bitte ausf�llen.</span>                     
            </label>
            <div class="clear"></div>
            <label class="message wrapper-after">    
            	<textarea  class="img-shadow" name="text">Text*</textarea>
                <span class="error"></span> <span class="empty">*Bitte ausf�llen.</span>
           	</label>
            <div class="clear"></div>
            <div class="buttons2">               
	            <a href="#" data-type="submit" class="button">submit<strong></strong></a>
	            <div class="clear"></div>    
        	</div>
			<div class="clear"></div>
			<input type="hidden" name="sendemail" value="{sendemail}" />
      </fieldset>     
</form>
-->
<!-- <f:link.action action="send">New Kontaktformular</f:link.action>  -->
</f:section>